public class Animal {

    public String name;
    public int age;

    public Animal(){
        this("大牛",3);
        System.out.println("调用无参");
    }
    public Animal(String name,int age){
//        this();
        this.name = name;
        this.age = age;
        System.out.println("调用了带有两个参数的构造方法");
    }
    public void printAnimal() {
        System.out.println("name: " + this.name + " age: " + this.age);
    }
    public static void main(String[] args) {
        Animal animal = new Animal();
        animal.printAnimal();
    }
}
